package com.soda.service;

import java.util.List;

import com.soda.bean.User;
import com.soda.util.PageInfo;
import com.soda.util.SelectUserInfo;

public interface UserService {

	User login(String loginname);

	int editUserInfo(User u);

	int editPassWord(int useId, String newpwd);

	List<User> getAllUser(SelectUserInfo sui, PageInfo pi);

	User getUserById(int id);

	int editUserInfoByAdmin(User u);

	int editUserState(int uid, int ustate);

	int deleteById(int useId);

	int getUserCount(SelectUserInfo sui);

	int addUser(User u);

	int ajaxSelectLoginName(String loginname);

	String getNameById(int id);

}
